package com.nuoniu.sibanyun.entity.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 收/付款计划
 * </p>
 *
 * @author 小啊刚
 * @since 2021-09-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fa_receive_payment_plan")
@ApiModel(value="VReceivablePlan对象", description="收/付款计划")
public class VReceivePaymentPlan extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "应收应付单据id")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "合同id")
    @TableField("contract_id")
    private Integer contractId;

    @ApiModelProperty(value = "类型:1收款 2付款")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "计划收/付款日期")
    @TableField("plan_date")
    private LocalDate planDate;

    @ApiModelProperty(value = "收/付款比例")
    @TableField("proportion")
    private BigDecimal proportion;

    @ApiModelProperty(value = "收/付金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "收/付本位币")
    @TableField("lc_amount")
    private BigDecimal lcAmount;

    @ApiModelProperty(value = "销售/采购订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "订单行号")
    @TableField("order_line_number")
    private String orderLineNumber;

}
